home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 99
/
(Vol 99) Jan 19 2010.iso
/
Games
/
artifact_catcher.swf
/
scripts
/
DefineSprite_58
/
frame_1
/
DoAction.as
Wrap
Text File
|
2010-01-19
|
540b
|
19 lines
if(_root.guy._x < _parent._x + 30 && _parent._x - 30 < _root.guy._x && (_root.guy._y < _parent._y + 80 && _parent._y + 40 < _root.guy._y))
{
_root.guy.gotoAndStop("catch");
_root.guy.grab.object.gotoAndStop(_parent._currentFrame);
_root.s_trumpet.start();
_root.score += _parent.object * 10;
_parent.gotoAndStop("blank");
}
else if(245 < _parent._y)
{
_root.s_smash.start();
_root.misses = _root.misses + 1;
_parent.gotoAndStop("smash" + _parent.object);
}
else
{
_parent._y += _parent.speed;
}